<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加</title>
<script type="text/javascript" src="../js/jquery-1.9.0.js"></script>
<script type="text/javascript">
var webURL = '<%=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()%>'; 
$(function() {
	//alert('<%=request.getParameter("appId")%>');
	var appId = '<%=request.getParameter("appId")%>';
	$.get(webURL + "${middleUrl[0]}/addInput", function(data) {
		//alert(data);
		for(var i=0; i<data.length; i++) {
			$('<label />').text(data[i].field).appendTo('#add');
			$('<input />').attr('value', data[i].type).appendTo('#add');
			//alert(data[i].field);
		}
	});
	/* for(var i=0; i<20; i++) {
		$('<input />').attr('type', 'input').attr('size', '25').appendTo('#add');
	} */
	
});
</script>
</head>
<body>
<%@include file="../../userinfo.jsp" %>
<div id='add'></div>
<!-- <div style="width: 50px; background-color: red;"></div> -->
<!-- <input type="text" value="test" maxlength="5" size="20"/> -->
<!-- <label>label</label> -->
</body>
</html>